import Link from "next/link";
import { Button } from "@/components/ui/button";

export default function Home() {
  return (
    <main className="flex min-h-screen flex-col items-center justify-center p-4 bg-gray-50 dark:bg-gray-900">
      <div className="w-full max-w-2xl p-8 bg-white rounded-lg shadow-lg dark:bg-gray-800">
        <h1 className="text-3xl font-bold text-center mb-6 text-gray-900 dark:text-white">
          智能知识库对话系统
        </h1>
        <p className="text-center mb-8 text-gray-700 dark:text-gray-300">
          基于大语言模型的知识库管理与智能对话平台
        </p>
        
        <div className="space-y-4">
          <div className="flex flex-col space-y-4 sm:flex-row sm:space-y-0 sm:space-x-4">
            <Link href="/sign-in" className="flex-1">
              <Button className="w-full bg-blue-600 hover:bg-blue-700 text-white">
                登录
              </Button>
            </Link>
            <Link href="/sign-up" className="flex-1">
              <Button className="w-full">
                注册
              </Button>
            </Link>
          </div>
          
          <div className="pt-4 mt-4 border-t border-gray-200 dark:border-gray-700">
            <h2 className="text-xl font-semibold mb-3 text-gray-900 dark:text-white">
              系统特点
            </h2>
            <ul className="space-y-2 text-gray-700 dark:text-gray-300">
              <li className="flex items-center">
                <span className="mr-2">•</span>
                智能文档管理与向量化存储
              </li>
              <li className="flex items-center">
                <span className="mr-2">•</span>
                基于大语言模型的自然对话
              </li>
              <li className="flex items-center">
                <span className="mr-2">•</span>
                多种文档格式支持 (PDF, DOCX, TXT, MD)
              </li>
              <li className="flex items-center">
                <span className="mr-2">•</span>
                流式响应与引用追踪
              </li>
            </ul>
          </div>
        </div>
      </div>
    </main>
  );
} 